package dubbo.learning.sample.consumer;

import dubbo.learning.sample.api.action.TestAction;
import dubbo.learning.sample.api.service.TestService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Hello world!
 */
public class App {
    public static void main(String[] args) {

        ApplicationContext context = new
                ClassPathXmlApplicationContext
                ("classpath:META-INF/spring/application.xml");
        TestService testService = context.getBean(TestService.class);
        TestAction testAction = new TestAction();
        testAction.setStr("acwrer");
        System.out.println(testService.create(testAction));
    }
}
